package com.ruoyi.infoManagement.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.infoManagement.service.ServiceUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/infoManagement/serviceUser")
public class ServiceUserController extends BaseController {
  @Autowired
  ServiceUserService serviceUserService;
  @PreAuthorize("@ss.hasPermi('infoManagement:serviceUser:delServiceUser')")
  @PostMapping("/delServiceUser")
  public AjaxResult delServiceUser(@RequestBody String serviceId){
    serviceUserService.delServiceUser(serviceId);
    return AjaxResult.success();
  }
}
